prob 1 solution