Payroll modeling by using Design patterns Patterns used: Composite pattern for building and traversing the payroll concepts for calculation