add get_size method