The ordered pairs (1, 1), (2, 8), (3, 27), (4, 64), and (5, 125) represent a function. What is a rule that represents this function?

y = x^3