Class Group Measures UFD Property