added take method to Dataset