collecting user responses line by line