Thank you for letting me know.
There were two errors in the examples. First of all, the result of the first example should be assigned to a variable
m. That variable is used in the next two examples.
Second: there were too many block quotes in the first ‘flatten’ example. I fixed both errors, so please try again!