School assignment rewrite