Format multiple classes