implemented an interface for queue  and priority queue