Title: A teaching cost function for higher education