model for relations