programming practice, simple shell