separate file reading from mean calculation using data