changed method names from palindrome to pal