make file layout to conform to the hierarchical structure of the class.