Adding getSize method