a program to run on MNIST database