Better to use different behaviour in "How can my code be made more modular?" example, as the functions are meaningless (you don't need a function to get a list size, you simply use the list function "size", same for add. I liked the example from the lecture, when you had a function that both sum and print, which was not pure, and then you separated it into two pure functions, one that sums and the other prints.