class Liquid {

    @Override
    public boolean equals(Object other) {
        if (other == null) {
            return false;
        }
        if (other == this) {
            return true;
        }
        if (!(other instanceof Liquid)) {
            return false;
        }
        Liquid otherLiquid = (Liquid) other;
        return (Math.abs(otherLiquid.amount - amount) < 0.000001
            && Math.abs(otherLiquid.temperature - temperature) < 0.000001 && otherLiquid.color.equals(color));
    }

    public  Liquid(float amount, float temperature, Color color);

}