first functional draft of palindrome test