class template example: Queue