Implemented Restricted Boltzmann Machines