Should use a data structure. Most of this will change.x
gets average lines