Refactored the logic into the ShellImpl class