Add some code for the HasMany relation