work in scala examples