solution for prob3