added sample code for using urls