Add message length assignment from chapter 6.