add a class to calculate the metrics

: )