problem4 begin