Solved exercise 1 : fixed filter function in trait Option