Extracting metrics

Although the tests pass and are complete, metric.rb could be
written a little better