update

- add number option for compare method
- add example code