Make the pastry: measure the flour into a bowl and rub in the butter with fingertips until the mixture resembles fine breadcrumbs. Add the water, mixing to form a soft dough.
Wrap in clingfilm and leave to rest in fridge for half an hour
Roll out the dough on a lightly floured work surface and use to line a 20cm/8in flan tin. Leave in the fridge to chill for further 30 minutes.
Preheat the oven to 200C
Prick the pastry base with a fork and line with greaseproof paper and fill with baking beans. Bake blind for 15 minutes, then remove the beans and paper and cook for a further five minutes to dry out the base.
Remove from oven and leave to cool for 15 minutes
Spread the base of the tart with raspberry jam.
Melt the butter in a pan, take off the heat and stir in the sugar. Add ground almonds, egg and almond extract (if using I didnt).
Pour into the flan tin and sprinkle flaked almonds on top.
Bake for about 35 minutes.
Recipe by Mummy Barrow at https://www.mummybarrow.com/gbbo-pastry-week-bakewell-tart/