add progs from chapter 5