some snippet demo code