[Closes #46] Implemented clone and copy in two functions.