in reply to Help me how to use require..

Unrelated to your scope issue, I think you possibly want the pathnames to start with /cygdrive/d instead of /cygsrive/d. I'm assuming you're using Cygwin and files are on your D: drive.

-- Ken