writing a shell in ruby for learning purposes