Update Functions.java

Fixes [issue #42(SparkException: Task not serializable in logs_analyzer/chapter1/java6)] (https://github.com/databricks/reference-apps/issues/42).