Added a example which com=ntains all basic fucntion