added findAndBuyNumber function, updated ready.