modified the example