implement a simple demo