getPaymentTypeAtIndex(int index) implemented for Payroll class