Towards compilation of the code thus far - stage 1 of 2