Implemented queue ADT using a linked list.