added getSize example