Add a simple function as example on readme