added Chunk() and tests