Renamed List type to LinkedList. Map function can generate a list of elements of a different type. Cat function will not overflow the stack.