delete class, and change size()