minor changes in lecture notes, aded program to help solve exercise 11