fixed the constructor of BinaryCalculator