How to Create a filter List from two lists?

use the sqlite database, create a table with 2 columns name and class and add your records
then use a select statement like this SELECT DISTINCT class FROM myTable

Taifun