Preheat oven to 180 C.
Melt butter and sugar together in pot, then remove from heat.
Add cocoa and cool slightly.
Beat together the eggs and vanilla and stir in to pot.
Add flour and stir in.
Pour into buttered baking dish.
Bake at 180 C for 20 minutes. Ready when just firm in centre.