created models and added associations to models