added palindrome to object class