Added Exercise6.java