Completed seq comp, creating functions, and recursion