Changed from extending HashMap class to a linked list, and remove reliance of the HashMap class