Add setName function in Module class