finish function chapter section 1,2,3

Signed-off-by: xiehuc <xiehuc@gmail.com>