addded initialize method with instance variable @planes