package org.ruler;

import static org.ruler.Unit.FEET;
import static org.ruler.Unit.INCH;
import static org.ruler.Unit.MILE;
import static org.ruler.Unit.YARD;

class Length {
    private int value;
    private Unit unit;

    private Length(int value, Unit unit) {
        this.value = value;
        this.unit = unit;
    }

    public static Length mile(int value) {
        return new Length(value, MILE);
    }

    public static Length yard(int value) {
        return new Length(value, YARD);
    }

    public static Length feet(int value) {
        return new Length(value, FEET);
    }

    public static Length inch(int value) {
        return new Length(value, INCH);
    }

    @Override
    public boolean equals(Object obj) {
        Length that = (Length) obj;
        return obj != null && this.value * this.unit.value() == that.value * that.unit.value();
    }
}

@@ -316,39 +316,32 @@
 nit;%0A    %7D%0A%0A    
-public 
 static Length mi
@@ -348,32 +348,32 @@
 le(int value) %7B%0A
+
         return n
@@ -399,39 +399,32 @@
 LE);%0A    %7D%0A%0A    
-public 
 static Length ya
@@ -482,39 +482,32 @@
 RD);%0A    %7D%0A%0A    
-public 
 static Length fe
@@ -569,27 +569,20 @@
 %0A    %7D%0A%0A
+
     
-public 
 static L

refactor to remove the unessary public