scala samples