initial draft of the BinThenReg class