console like shell implemented by ruby