Update Functions.java

Fixes [issue #42(SparkException: Task not serializable in logs_analyzer/chapter1/java6)] (https://github.com/databricks/reference-apps/issues/42)
Merge pull request #43 from MiguelPeralvo/patch-5

Update Functions.java