initializing class structure