simplified the first example in readme