source code for programming exercises