First sketch of stream API