Init class attributes in def constructor