used strict comparison for confirmed check
added passing sample data