added scanner.java and parser.java