A set of sample codes written in scala