Modifying the program to display the Y values