Adds methods to the two created models.