Mathematical Modeling of Modules