Seven different lecturers are to deliver lectures in seven periods of a class on a particular day. A,B and C are three of the lecturers. The number of ways in which a routine for the day can be made such that A delivers his lecture before B, and B before C, is