beg class