did functor and most of the apply exercises.