Changed the model to incorporate a ManyToMany relationship