A framework for implementing gamification in a application