Coursework 2 .java files