Cloning, inheritance and sub-module