Metric calculations with the M3 meta-model