split takeaway.rb into multiple classes