Implemented clone in subtypes

Close #3