Adding example for functional interface.
Adding example for using built in functional interfaces.
Refactoring.
Adding example for aggregate functions.