New law allows longer sentences for convicted rapists