changed system.console().readLine() to a scanner