Renamed quanity to quantity everywhere