Move example code into documentation