Solved problem3
Solved problem 4