How do you measure the mass of a star?