implement results calculation, result output, run file