Badge generator based on moon's work