Spark Book Exercise