Jon's starting RBM code