finish method chapter section 6,7

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