Implementing the domain model (nodes and relationships)