Create MarginCalculator.java