added chapter of functional programming