solved prob 3