edited takeSamples(): take only 60% of dataset as training set