Create cognitive.py