List adapter solutioon and started on solution for priorityQueue