Defs and classes