Add report function and a example

Add report function and a example