span function
Lists and recursion examples