added example for callbacks