solved prob 4