queue to class