added function example the works