Logic to add merit badge to table