Merged notes on scala