class Data with stream