Move example code into separate file.