refactored to introduce a new method which will be our fake shell command