Add poc for result file writing on main.c