Copy constructor.

Finished and tested the copy constructor.