Implement association classes for belongs_to and has_many.