require 'airplane'
#require 'person'
require 'airport'
require 'flight'

require 'yaml'

flights = nil
File.open("flights.yaml","r") do |f| 
  YAML.each_document(f) do |flight|
    puts "bla"
    puts flight
  end
end

#doplnit kod programu :-)
#File.open("flights.yaml","w") {|f| YAML.dump(flights,f)}