Updated and simplified example using NodeDomain