delete Stream class