sample output and input is not line breaking correctly