added clone() method in order to implement paste() correctly