On Hopfield neural networks