An approach to distributed modeling