notes for ex1-ex12