Fizzbuzz example refactoring