added callback demo to examples