Network working with MNIST