beertracker into a class with methods