Updated main class to take input from the console, in (strictly) the format specified in the brief pdf (i.e., there is no input sanitisation (yet)), rather than using test data.