Create flight.java