create models and basic associations