prob 59 adding initial code