simple shell implent in java