oop: rewrite of dice-roller