Implement methods in Shell.java