created Quantity.java