Added Mode.java