Code for textbook problems and other small programs