Finished HW3. Now it reacts equally to url and file