Palindrome Check Complete
adding logic to model