writing shell.cpp