Made sure that end-value is correct

* Added an example