Added copy constructor and assignment operators to the classes.