Endomorphism rings and direct sums of torsion free abelian groups