correct solution to add argv
complete asynchronous IO exercise