Introduction of a Scala snippet that uses lazy evaluation features on Scala. It prevents java.io.NotSerializableException on some spark apps.