Masses and Thermodynamic Properties of a Quarkonium System