Measurement of the W boson mass with the Collider Detector at Fermilab