solved functor excercises
solved apply exercises