getSpace method