Preheat the oven to 190°C / 375°F / Gas mark 5.
Lightly grease a roughly 20 x 30cm shallow ovenproof dish.
Use a large saucepan and melt the butter.
Remove the butter from the heat and stir in the sugar until well mixed.
Whisk the eggs together then gradually add the eggs to the butter and sugar, beating well using a wooden spoon in between each egg addition.
Sift the flour and cocoa powder on over of the egg mixture, then beat vigorously with a wooden spoon until thoroughly combined.
Alternately, you can use an electric mixer or food processor.
Pour into the prepared tin or dish and lay the pears into the chocolate batter.
Put the chocolate on a board and cut into chunky pieces roughly.
Scatter the chocolate pieces over the batter and sprinkle with almonds, if using.
Bake in the centre of the oven for 30 minutes or until the mixture is crusty on the surface and lightly cooked inside.
Do not overcook to keep the gooey chocolate centre.
Serve warm with cream or ice cream