First version was just template. This is version that computes mean on one file.