Add missing imports and models to the examples in the 'from scratch' documentation.