Added a bit more code, possibly broken.
Completed 79, closes #86
Initial commit of problem 168