added anonymous function

added anonymous function to say goodbye and thanks