How did James cook show metacognition?