add progs for chapter 7