Identifying thoughts and beliefs