the bet class