added  finity option
add example