initial code for Spider (#12)