It would be easier to do this if you put your list of class reservations in a separate related table instead of in a group of dedicated fields.
Using what you have, you can create a series of calculation fields that look like this:
If (101Field = "x" ; 101 ; "" )
(I'm making up a name for your first field here. Use your field name in its place.)
Put each of these fields on your name tag layout. There are sliding options you can set to slide them left or up if you need to.