The organizers of a music festival are scheduling exactly six master classes, one class per day for six consecutive days. Three of the classes will be given by violinists and three by pianists. The only musicians who can teach the classes are the violinists F, G, H, and J, and the pianists R, S, T, W, and Z. The festival's organizers must observe the following constraints:
No musician will teach more than one class.
F will not teach unless the first three classes are taught by violinists.
If J teaches a class, it will be the sixth.
R will teach only if T teaches the first class.
No pianist will teach on a day that immediately precedes or immediately follows a day on which W teaches.