Move example from README into a file.