Help with chocolate cupcake recipe.

When making chocolate cupcakes using the unsweetened cocoa…are you supposed to
A. melt the cocoa and sugar together on the stove and cream it with the butter
B. melt the cocoa in boiling water then add to the butter and sugar after its creamed

or what? i had a recipe that just said add the cocoa to the mix…well that didnt work the cupcakes were a brown color and did not taste right.