solution to challenge exercise ch 6 2700817