Tutorial code and cookbook classes for Ratchet