Code rearranged and problem 59 solved differently and problem 60 start