moved Metric to ./lib.