Task09 example function created with main