add classes as references