add ad class and its interface