Fixed sample source code