added handwrittenDigit class