I think we need to remove it wrong example and create right - 
@Override
         public void append(Number calculated) {
                max = Math.max(max, calculated);     
         }