learning something about scala