code and workflow examples