add source code for samples