Added palindromeResult class because we're going to need it