Studying scala and spark example and study note