Metrics for evaluating modularity and extensibility in HMAS systems