demo some sample code