started working on RBM class