Used csv reader for average_length