Add range method

The change adds *range* method. 

Thanks for the gem.