removed old, untested code
metric: created basic class for metrics