my small demo code.