Tutorial 8: Handwritten digit image classification using a logistic regression model