Added method set() to class Metric