How do I save a class?