implemented all 7 metrics and added enumeration to keep track of metric
names.