Coursework 2 for Birkbeck Programming in Java