programming exercise 2 done.