ex1 and ex3
examples 4-11