fleshed out final example