For the Kaggle Handwritten Digits Competition