class structure added.