implemented C3 metric with tml library