in reply to I get these errors when I perform the script

Welcome Adriana. Please edit your post and place your code (and the error message) inside <code></code> tags. Then someone will help you in no time.

(You can edit your post by clicking on its title.)

The way forward always starts with a minimal test.