practice excercise for java7 II exam