basic neural network for digit classification