Added constructors and destructors