Hi Aviv,
Here’s how you can fix this. Why am I making you fix this??
So you can learn more.
You know what they say, “teach a man to fish…..and he’ll become a vegan”
or something like that.
Ok in the text editor find the section underneath where it says “def draw(self, context):” on line 21.

That is the old api.
Nowadays it should look like this…

(bear in mind the ‘Layer 1’ should match the name of the collection you have in your file, and the text value can be whatever you want)