Added examples for creating functions