problem4 completed