rust: tutorial through chapter 4