private copystructor example