Adding Sample for object slicing and palindrome