build of example program with a more logical hierarchy