Creating class structure