getQty method added