Basic framework for AI