doing inheritance section 12

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