association class for belongs_to and has_many