chap1 first progs.