update the example.m for testing