Functor algebras