Final source code for the completed competition