An object-oriented approach to FizzBuzz