modified ex03_01 and ex03_06