completed problem 8
Merge branch 'problem8'