Implemented the Generate Report Functionality