Adding examples for functional programming