Notes for scala in spark