In a microwave safe bowl, melt butter and add cocoa powder.
Add sugar and vanilla then add in eggs one at a time.
Sift together flour, vanilla pudding mix, salt and xanthan gum then add to mixture.
Pour batter into 8x8 pan and bake at 350 degrees for 20-25 minutes.