add copy Object method

Signed-off-by: Roger Manich <roger.manich@gmail.com>