added initial version of domain model
fixes issue #1