done with problem 3