created models and added associations