Initial upload of Parser.java with parse function