better code examples (just wrap them in a function)