some code demo and snippet