added clone functionality; extended sample
added clone functionality