added getSize method