confusing variable name of ofstream type. It's better to name it as "out" or "outs"