Add example using function for message
Message may also take a function
Merge pull request #2 from matiboy/allow_function_for_message

Documentation: Function is also allowed for message