Camping at Yosemite

I was preparing a tent while Ben was cooking. When I almost finished with the tent, I heard some noise behind me. I walked to Ben then I looked back from where I came. My headlamp reflected with bear’s eyes so I told Ben that there was bear right there. He did not understand me. I told him to look at its eyes. Ben scared it away by making loud noise from a pan. That bear came because of the food. It smelt nice. After that it was raining. I could not eat anything because I was afraid that it would come back.