Created Scanner in place of BufferedReader