refactored fizz-buzz program