Removed dealing with \n in input as clarified in class that this was not requried alongside updating of coursework question