Develop generate demo function