refactoring the fizzbuzz fn