refactor order.rb