exercises in scala