How thoughts and ideas are generated in our mind?