cube <- function(x) x*x*x elements <- 1:5 cubes <- cube(elements)