A systems analysis of the behaviors of schooling