Add the optional coconut flakes, and you may call these Magic Cookie Bars.
Preheat the oven to 350°F. Grease a 13 × 9 × 2-inch baking pan and line with parchment paper so it extends over the 2 long sides.
Beat together in a large bowl:
Beat in:
Set aside. Whisk together in a medium bowl:
Stir in:
Stir the flour-oat mixture into the butter-sugar mixture until combined. Press two-thirds of the mixture into the prepared pan and set the rest aside. Combine in a medium saucepan and stir over low heat until smooth:
Stir in:
Spread the chocolate mixture over the crust, then dot with the remaining flour-oat mixture. If desired, sprinkle with:
Bake until set, about 25 minutes. Let cool completely in the pan on a rack before cutting into bars.