works for 10 courses