refine ex1.07 and ex1.07 by using block structure