Code for digit recognition competition in Kaggle (17 out of 189)