Pattern recognition using Hopfield Neural Network