Cook throws three simulated innings