Example codes for generating report