Starting code for program 4.