Refactor: Added lambda expressions in report4 to clean the code.