Parser.java -> add method generation