Playing around with Spark APIs