adding new version of shell.c