Palindrome finished with constructors and destructors