Reading inputs from the console