added copyFrom and copyTo methods for cloning purposes