Cook: turned himself into a fine one-day player