finished task3. also, made changes in exec, open & chdir as required on task1.