Implements a simple shell