Thanks for this article, it is good. But can you tell me how to create the one like you have at last of article about "earn badges"?