My implementation for c-based shell program