adding class api