create a method to add code fragments into clone class
add an interface to describe how to calculate metrics
make sure IMetricsCalculator is a functional interface