updated class constructors.