Playing around with the spark framework