adding class to list