added anonymous function example