added range function and extra comments