coursework 3, Programming in Java