programming problems vol1 chap2