fixed bug in copy constructor example