Endomorphism rings of abelian groups