Completed problem 5
Completed problem 3