Replaced new range operator.
Replaced deprecated  property use.
Removed superfluous semicolons.