modified task to input any range