Add example for anonymous implementation of callback