solved prob 2