added random seed and better way to select training vs test observations