Foundations of Computational Economics