The other answers are fixing some issues. There is also a problem with the way you're calling the functions as you're passing rock as a variable, you need to use a string:
Unless you're declaring the variables somewhere but it's not shown in your code.