add source code for tutorial3
modify