Complete problem 7 (two ways - one easy, one harder).