Macbook (sleep)

I have 13 inch macbook and i would like to close the lid of the laptop and keep the OS functioning to download files, i want to use this option so i can keep my file downloading while i am in a lecture, i know how to do this in windows but i didn’t work on mac snow leopard.

i mess with the options but with no luck… any help?