Adds copy() method