refactor AdType class