problem  9 begin