Yeah you're right. I put the array outside of the class definition and made it static.