now using has_many and belongs_to methods