Lets see your main.cpp file and the rest of what you have because I'm pretty sure you are not declaring "beam" correctly.
sfuo 111 Practically a Master Poster
sfuo 111 Practically a Master Poster
sfuo 111 Practically a Master Poster
Trini89 commented: Very Helpful, advice worked wonderfully +2
jamdownian commented: Pure genius... +1
Frederick2 commented: thanks, you're right! +2
xxunknown321 commented: thank you +0