upload basic codes

upload basic codes