Changed for loop to the forkCommand function & initated execute.c/.h