scala lab sheet exercises