Another implanatation of costructor and decostructor + dynamic linkage