working simple rbm