Create MiddleNode.java