Corrected title from problem 7 to 8
Solved problem 1