Refactored fizzbuzz app with functions