A solution for exercise 17.6
Merge pull request #58 from Queequeg92/master

A solution for exercise 17.6