replce system method and use demo

Runt three demo