put callbacks example to the repo (originally written for #16)