Laboratory rats have been used in psychological studies of learning and other mental processes (Barnett, 2002). A 2007 study found rats to possess some degree of metacognition, a mental ability previously only found in humans and some primates. In general, it has been difficult to measure intelligence in rats. Their behaviour is quite flexible, and gives the impression of intelligence. Flexible behaviour is good for problem-solving and learning.