create models with associations