public static Length getTypeOfLength(String type) {
		if (type.equalsIgnoreCase("inch") || type.equalsIgnoreCase("inches")) {
			return new Inch(0.0);
		}
		
		if (type.equalsIgnoreCase("meter") || type.equalsIgnoreCase("meters")) {
			return new Meter(0.0);
		}
		
		if (type.equalsIgnoreCase("foot") || type.equalsIgnoreCase("feet")) {
			return new Foot(0.0);
		}
		
		if (type.equalsIgnoreCase("yard") || type.equalsIgnoreCase("yards")) {
			return new Yard(0.0);
		}
		
		return null;
	}