Instead of using the init method for the constructor definition, I using the def method.