simple refactoring of Bet class