Examples for learning spark