Hopfield model for pattern storage task