Updated Shell.java