Actor(String URL, StringBuilder sourceCode) throws IOException {
		int tableStart = 0;
		int tableEnd = start;
		int ulStart = 0;
		int ulEnd = start;
		
		boolean flag = true;
		
		while (flag) {
			tableStart = sourceCode.indexOf("<table", tableEnd + 10);

		    if (tableStart != -1) {	
		    	tableEnd = sourceCode.indexOf("</table>", tableStart + 10);
		    	
		    	String pattern = "(<th|<td)[^<]*>[0-9]*((<i>.*<a href=.*</a>.*</i>.*)|(<a href=.*<i>.*</i>.*</a>))";
		    	
		    	flag = getFilmography(tableStart, tableEnd, sourceCode, pattern);
		    }
		    else {
		    	ulStart = sourceCode.indexOf("<ul", ulEnd + 10);
		    	if (ulStart != -1) {
		    		ulEnd = sourceCode.indexOf("</ul>", ulStart + 10);
		    		
		    		String pattern = "<li[^<]*>[0-9]*((<i>.*<a href=.*</a>.*</i>.*)|(<a href=.*<i>.*</i>.*</a>))";
		    		
		    		flag = getFilmography(ulStart, ulEnd, sourceCode, pattern);
		    	}
		    	else
		    		break;
		    }
		}
		
		System.out.println();
		
		String name = getName(sourceCode);
		usedActors.push(name);
		writeToFile(Search.URL, name);
		increaseTheNumberOfActors();
	}