Solutions to programming exercises.