Create Flatten.java