Modify class Engine in both *.java files