added anonymous function examples