implemented lRange and tests