Do you find that your Mac will go to sleep on you when you are working on something and you have just stopped for a second to think?
If so you need Caffeine… not the drink the App
On the Apple App store you will find the wonderful App that will allow you to click an icon in your menu bar to allow you to prevent your Mac from sleeping while you are working on something, then just click it again and your Mac is back to normal.