Added a Reader class to read input from keyboard