Add solution for Chapter 6, Exercise 7, closes #27

I cleaned up my solution and added it. Let me know what you think! :smile: