Exercises week 7, Programming in Java, BBK MSc CS