Get subjects and courses by index