Initialize class attributes in constructors.