update scala note to chap 6