Modified class structure with public before private