completed ex1-{1,2,3}