[Lesson 01] Defined W as the weight in the text.

The variable `W` was not defined in the text.