Various programming problems from textbooks