Added example and sample source file for stack.