adds get_palindrome to class