Can now accept input by lines