Completed problem 36, fixed 35, modularized palindromes somewhat