adding chapter 5 file based cli