working on problem 4
solved problem 4