Beginning in 2018-19 school year, a pupil enrolled in a public school in the high school grades may attend public school in a nonresident school district for purpose of taking a course offered by the nonresident school district. A pupil may attend no more than two courses at any time in nonresident school districts.