Finished problem 5

solved problem 5