class MixTankSimulation extends MixTank {

    public Liquid takeOut(float amount) {
        Liquid current = this.getLiquid();
        if (current.getAmount() < amount) {
            this.setLiquid(new Liquid(0, current.getTemperature(), current.getColor()));
            return current;
        } else {
            this.setLiquid(new Liquid(current.getAmount() - amount, current.getTemperature(), current.getColor()));
            return new Liquid(amount, current.getTemperature(), current.getColor());
        }
    }

    public  MixTankSimulation(float capacity, Liquid liquid, Pipe outPipe);

}