completed 3.7 exercises