Establishing relationships betweem models