create a class to calculate metric values
implement a function to calculate metrics values when creating crd elements
add some fields on code fragment info