modigify test2.c, make it receive parametes from terminal