Profiled School: Optimal Schedulling