From Cognitive Binary Logic to Cognitive Intelligent Agents