Created Hopfield network to reconstruct patterns