Few more steps toward printing result array to file