Implemented the List class