Working with a Hopfield neural network model - Part I