created a function that traverses the website