Example code for DgWorx