Fix a bug in sample/exercise in Lesson 7

Fix a bug in drawoverride