Moved the calculatePay method into the Employee class.