Adding quantity functionality