Added printBin function