adding start of hw6 RBM