make the example code in the README runnable