Closer to finishing the shell script