How to create class lists from orders