Added constructors for base classes. Fixed linker error.