Code modified to use the new Range object for Rule

Issue: #43
Signed-off-by: Rossella Sblendido <rossella@midokura.com>