Finding the function rule