add ls.py for chapter 5