[FIX] fixed solution for problem 8
Merge pull request #48 from paulyi326/master

[FIX] fixed solution for problem 8