make tally into OOP