add demos for several basic functions