Exercises 5, 6, and 7 of Hackbright Academy