Functional programming scala with first example completed.