school manage logic