class directive