Code Refactoring, Attendance Calculation etc