add classes to type environment