my output match with sample output