A Practical Artificial Intelligence Framework