move code classes to Code namespace