done with problem 5