Create middle.java