Created Exercise3.java