Melt margarine. Stir in cocoa. Let cool. Beat eggs and add. Add sugar, mix well, add flour, mix well. Stir in vanilla and nuts. Bake 350 deg. 30-35 minutes.