Changed firstAndLast to make it match between methods. This is why we declare global variables.