Functional programming examples