restructure example to be more logical