implementation of buyLot()