Building the Foundations of Both Structures and Calculus