In a bowl, mix flour, sugar, cocoa, baking powder, and salt. Add milk, melted butter, and vanilla. Stir in nuts if desired. Spread the batter evenly in an ungreased 9-inch square baking pan.
Step 3: Prepare Topping
In a separate bowl, combine brown sugar and cocoa. Sprinkle this mixture over the batter in the pan.