Calculating the mass of a Galaxy