a simple demo of callback