added a framework for AI