Exercise 4 for Streams
Exercise 6: headOption
Exercise 7: map, filter, append, flatMap for Streams