add some sample codes