Modules

Implementation of "factory pattern"