Build Function In R Programming