build primary code framework

build primary code framework