Wrote updateQuantityNeededForAllPeers method in controller file