mode class