Constructs the dataset