Model for awarding badges