Solved problem 9.
Merge pull request #9 from mportiz08/problem-9

Solved problem 9.