chapter 6 inherit from list.py modification

chapter 6 inherit from list.py modification