Changed variables m1, m2 from Module objects to Module pointers (pointer to Module objects) and changed the dereference operator from . to ->.