Create Gate.java