HW3: extended for -url