refactored fizzbuzz