public Symbol lookup(String name) throws SymbolNotFoundError
    {
		//Check local table
    	for(Symbol s : symTable){
    		if(s.name().equals(name)){
    			return s; 
    		}
    	}
		SymbolTable symTablePtr = this.parent;
		
        while(symTablePtr != null){
        	for(Symbol s : symTablePtr.symTable){
        		if(s.name().equals(name)){
        			return s; 
        		}
        	}
        	symTablePtr = symTablePtr.parent;
        }
        throw new SymbolNotFoundError(name);
    }