add ex10 and 11 partial code