refactor of fizzBuzz app to incorporate functions