Scratch class docs and samples