A Systems Approach to Learning Environments