Added destructor for Model