Everything works except: puts "Engines: #{train.number_of_engines}"