added other example code