programed the getURLSource method