Update functional programming principles in scala week 6