original sample source code