Spark based programs