Add missing copy function and add example