finished Exercise6Test.java