prob3 completed