first complete version of dataset.cpp

it can be compiled