menu implementation

Maybe it would be better to have `let line = stdin.read_line().unwrap()` instead of a temporary value.