finish code for lab4, ex10 and ex11 yet remains undebug