started work on problem 4
solved problem 4
solved problem 5