add demo for some advance features.

Persistence is not implemented.