Characterization of Flat Modules