Added final_arr like map

log final array