Adding ml, updating common for flatten method, and updating parent for ml & math