added getSize and testing