prob 51 solved
prob 51 adding comments