refactor fizzbuzz