class Flight
  attr_reader :code, :from, :to, :valid_from, :valid_to, :when_, :duration, :airplane, :distance, :base_price, :crew
  def initialize(code, from, to, valid_from, valid_to, when_, duration, airplane, distance, base_price, crew)
    @code = code
    @from = from
    @to = to
    @valid_from = valid_from
    @valid_to = valid_to
    @when_ = when_
    @duration = duration
    @airplane = airplane
    @distance = distance
    @base_price = base_price
    @crew = crew
  end
end