package Refactoring.LongExample1.After1; public class RetailClient extends Client { public double amountOwing(int daysWorked) { double base = baseAmount(daysWorked); return base - discountAmount(base); } public double baseAmount(int daysWorked) { return daysWorked * dailyRate(); } public double discountAmount(double base) { return base * discountRate(); } private double discountRate() { return 500; } private int dailyRate() { return 500; } }