List "ex" is not used and thus does not need to be declared. Or something is missing here?