Before you , monitor: Implementing Flavell's metacognitive framework in LLMs