add plane_factory.rb refactoring