resolve compile error.

I assumed that lecture 3 code should be the same as lecture 2.