add functional programming examples