programming exercises from various books