Calculating Molar Mass and Identifying Diatomic Gases