Implemented the constructor and the destructor

They should work the way I expect.