Designing the Physics Classroom: A Complex Systems Approach