Created as part of coursework for component 3 OCR computer science.