adding AverageWordLength class that implements the Metric interface