model and associations are set up