Changes Palindrome to its own class and test class