add callbacks with an example

tests to come soon