Refactored #change_quantity_of method