Adding infinite sequence solution