Range method is nearly completed but is not debugged completely