Started challenge 3 from chapter 6

Adds in the work begun on challenge 3. The program is completed and
just needs formatting.