solved exercises, but not Ex11 not really with functional programming