src/ch3/ex7: add