How to set up Gmail and Yahoo account in Outlook?

As a new user of outlook, I am facing difficulties which are easy for others. Before using outlook I use Gmail, yahoo for my email purpose. It will be very helpful for me, if I can retrieve Gmail & yahoo message with outlook. Is it possible? If possible, how it is possible to do, please advice.
