creating model relationship