Here is a goal: how do I make chocolate pasta?

How would you accomplish this goal?

pick from the following.
(A). grate a bar of chocolate over the top of the bowl, before adding the egg..
(B). add cocoa powder to the flour.
(B).