started using __init__ and self.var