Added a combined example - and caught and fixed a bug with the ordering of elements within duties