basic skeleton of AI engine