made example in readme runnable