Complete templated lab3 exercises.