Added operator=, copy constructor and void constructor