Updated example to include unit of work