added other sample codes