solved prob 51