add palindrome method to satisfy all tests and notes to explain mechanics