Support multiple classes in compiler