Didn't initially write the engineUpdate correctly, made some corrections according to the project instructions. It's still not tested, so it likely has some bugs.
Same as last commit, but got rid of a syntax error.
Wrote engineDoFinal(). Also not tested, so might possible have problems.