finalized machine learning notebook with hand-written recognition digits example