Base code for the coursework