add PARAMETER
add comments
add comments
rewrite the test for Ex12

the old version is for Ex10