updated example for functions to readme