Updated the code example of clone functions.