add basic example, sometimes sigfault or errors happens