A three things. First your first line (the she-bang) is incorrect. You should fix it.
Second, the section headers should be commented out.
Third, and most importantly, there is an error in exercise 1g.
(as this is a school exercise, I will let you find out how to fix these).
Although after 2 months, you should have completed this already