neural network from scratch trained with backprop to classify images of handwritten digits from mnist