simple shell written in Java