exemaple within Spark Framework