added a line argument to get_input to make it more testable