added fn to each example in readme