Spark.io basic functionality code