Implemented the ‘list’ method