Fizz Buzz program refactored