refractor fizzbuzz into a method