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