python classes and functions question

if i have this code:

i can't run it like this:

how can i change my function and classes so that i can run it like that? Thanks!

You are viewing a single comment. View All

Nevermind, i decided to have the structure like: