Added dumpcopy and smartcopy from chapter 7