Melt the chocolate and butter in a bain-marie (or using a microwave). Once the chocolate and butter are melted add the cardamom (or the spices/flavors of your choice).
Using an egg beater, beat the eggs and sugar until you get an off-white mixture.
Slowly add the chocolate mixture to the egg mixture. Keep stirring constantly or the eggs would cook (as the chocolate is hot).
Once the eggs and chocolate are mixed, incorporate the flour and stir well.
Coat the ramequins (small ceramic baking dishes) with butter and fill them with the chocolate batter.
Preheat your oven to 400 F degrees and bake the chocolate fondant for 12 minutes. The baking time may change based on your oven.
You can serve the fondant within the ramequins or you can carefully flip them on a plate. Let the fondant cool for few minutes before serving.