Add __construct and __destruct methods