Modules with semi-local endomorphism ring