converted using class syntax, mysterious bug

bug is: “the function drawLine() does not exist”