split list of classes by goods and services