add base type
Merge pull request #1 from guangbin79/base_type

add base type
code reviewed by Harry