Added destructor
Corrected the getcolor method