added class templates and computed compact class index inside the class builder