1st commit of context free grammer model, recursive backtracking function requires modifications