Modular Foundations