Created models and added associations