reformat input on challenge 5