Generalized module as a functor