Code for spider project