Revision. Will delete once exams are over, public repo for code examples.